package com.content.scaffold.service.sys;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.content.scaffold.common.mybatis.ISuperService;
import com.content.scaffold.model.dto.login.LoginDto;
import com.content.scaffold.model.dto.login.LoginUser;
import com.content.scaffold.model.dto.sys.QueryUserPage;
import com.content.scaffold.model.dto.sys.UserQuery;
import com.content.scaffold.model.entity.SysUser;

import java.util.List;

/**
 * @author xiaojl
 */
public interface SysUserService extends ISuperService<SysUser> {
    /**
     * 通过登陆信息获取登陆用户
     * @param loginDto 登陆信息
     * @return LoginUser
     */
    SysUser queryLoginUser(LoginDto loginDto);

    Page<SysUser> queryUserPage(QueryUserPage params);

    SysUser saveUser(SysUser user);

    List<SysUser> queryList(SysUser params);

    List<SysUser> queryUserList(UserQuery params);
}
